Pressing the keys C-c = pops up a buffer showing the table of contents of the document. By default, this *toc* buffer shows only the sections of a document. Using the l and i keys you can display all labels and index entries defined in the document as well.
With the cursor in any of the lines denoting a location in the document, simple key strokes will display the corresponding part in another window, jump to that location, or perform other actions.
Here is a list of special commands in the *toc* buffer. A summary of this information is always available by pressing ?.
reftex-toc (C-c =)
was called.reftex-highlight-selection,
Options (Fontification).reftex-toc-follow-mode. Note that only context in
files already visited is shown. RefTeX will not visit a
file just for follow mode. See, however, the variable
reftex-revisit-to-follow.reftex-toc was last called.\section to \chapter,
\subsection to \section etc. If there
is an active region, all sections in the region will be
promoted, including the one at point. To avoid mistakes,
RefTeX requires a fresh document scan before executing
this command - if necessary, it will automatically do this scan
and ask the user to repeat the promotion command.\chapter to
\section etc. If there is an active region, all
sections in the region will be demoted, including the one at
point.reftex-toc
was last called.reftex-toc
was last called.reftex-toc-max-level.reftex-toc-include-file-boundaries.reftex-toc-include-labels. When called with a
prefix argument, RefTeX will prompt for a label type and
include only labels of the selected type in the
*toc* buffer. The mode
line ‘L<>’ indicator shows which
labels are included.reftex-toc-include-index-entries. When called with
a prefix argument, RefTeX will prompt for a specific
index and include only entries in the selected index in the
*toc* buffer. The mode
line ‘I<>’ indicator shows which
index is used.reftex-toc-include-context.reftex-enable-partial-scans is
non-nil, rescan only the file this location is
defined in, not the entire document.xr package (see xr
(LaTeX package)), RefTeX will switch to one of the
external documents.reftex-auto-recenter-toc.In order to define
additional commands for the *toc* buffer, the keymap
reftex-toc-map may be used.
If you
call reftex-toc while the *toc* buffer already exists, the cursor will
immediately jump to the right place, i.e. the section from which
reftex-toc was called will be highlighted. The
command C-c - (reftex-toc-recenter) will
only redisplay the *toc*
buffer and highlight the correct line without actually selecting
the *toc* window. This can
be useful to quickly find out where in the document you currently
are. You can also automate this by asking RefTeX to keep track of
your current editing position in the TOC. The TOC window will
then be updated whenever you stop typing for more than
reftex-idle-time seconds. By default this works only
with the dedicated *TOC*
frame. But you can also force automatic recentering of the TOC
window on the current frame with
(setq reftex-auto-recenter-toc t)
The section macros
recognized by RefTeX are all LaTeX section macros (from
\part to \subsubparagraph) and the
commands \addchap and \addsec from the
KOMA-Script classes. Additional macros can be configured with the
variable reftex-section-levels. It is also possible
to add certain LaTeX environments to the table of contents. This
is probably only useful for theorem-like environments. See
Defining
Label Environments, for an example.